<!--COLUMN 1-->
<div class="ThreeColGrid_c1">
<div class="myAvatar">
        <?php 
            if($a_Stores['Store']['Avatar'])
            {
                echo '<img src="'. Router::url('/').'app/webroot/img/avatar/'.$a_Stores['Store']['Avatar'].'" width="100" alt="Locum">';
            }else
            {
                echo '<img src="'.Router::url('/').'app/webroot/img/avatar.jpg" width="100" alt="Locum">';
            }
          ?>
</div>
    <?php echo $html->link(__('Edit Store', true), array('controller'=>'stores','action' => 'edit/'. $a_Stores['Store']['id']),array('class'=>'TitleFive'));?>    

</div>
<!--COLUMN 1-->

<!--COLUMN 2-->
<div class="ThreeColGrid_c2" id="lopro">
<h1 class="TitleTwo"><?php echo $a_Stores['Store']['Username']?></h1>
<h3><?php echo $GLOBALS['Country'][$a_Stores['Store']['Country_id']];?></h3>
<p><b>Address</b><br/><?php echo nl2br($a_Stores['Store']['Address']);?></p>
<p><b>Member since</b> <?php echo date('y-m-d',strtotime($a_Stores['Store']['MatchMemberSince']))?><br>
<b>Last logged in</b> <?php echo date('y-m-d',strtotime($a_Stores['Store']['LastLoggedIn']))?><br>
<b>GPHC</b> <?php echo $a_Stores['Store']['GPHCNumber'];?></p>

<p><b>EPS1 Ready</b> - <?php echo trim($a_Stores['Store']['EPS1Ready'])? 'Yes':'No'; ?><br>
<b>EPS2 Ready</b> - <?php echo trim($a_Stores['Store']['EPS2Ready'])? 'Yes':'No'; ?></p>

<p><b>Community Dossette Patients</b> <?php echo $a_Stores['Store']['CommunityDossettePatients']?><br>
<b>Servicing of Care/Nursing Homes</b> <?php echo $a_Stores['Store']['Servicing']?></p>

<h4>Staff</h4>
<ul>
    <?php if(trim($a_Stores['Store']['Staff']))
        {
            $a_Staff = explode(',',$a_Stores['Store']['Staff']);
        
            foreach ($a_Staff as $k=>$value)
            {
                echo '<li>'.$GLOBALS['Staff'][$value].'</li>' ;
            }
        }
    ?>
</ul>

<h4>Essential Services</h4>
<ul>
    <?php if(trim($a_Stores['Store']['EssentialServices']))
        {
            $a_EssentialServices = explode(',',$a_Stores['Store']['EssentialServices']);
        
            foreach ($a_EssentialServices as $k=>$value)
            {
                echo '<li>'.$GLOBALS['EssentialServices'][$value].'</li>' ;
            }
        }
    ?>
</ul>

<h4>Advanced Services</h4>
<ul>
        <?php if(trim($a_Stores['Store']['AdvancedServices']))
            {
                $a_AdvancedServices = explode(',',$a_Stores['Store']['AdvancedServices']);
            
                foreach ($a_AdvancedServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['AdvancedServices'][$value].'</li>' ;
                }
            }
        ?>
</ul>

<h4>Enhanced Services</h4>
<ul>
        <?php if(trim($a_Stores['Store']['EnhancedServices']))
            {
                $a_EnhancedServices = explode(',',$a_Stores['Store']['EnhancedServices']);
            
                foreach ($a_EnhancedServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['EnhancedServices'][$value].'</li>' ;
                }
            }
        ?>
</ul>

<h4>Patient Group Directives</h4>
<p><?php echo $a_Stores['Store']['PatientGroupDirectives']?></p>

<h4>IT Compatibility</h4>
<ul>
        <?php if(trim($a_Stores['Store']['ITCompatibility']))
            {
                $a_ITCompatibility = explode(',',$a_Stores['Store']['ITCompatibility']);
            
                foreach ($a_ITCompatibility as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['ITCompatibility'][$value].'</li>' ;
                }
            }
        ?>
</ul>

<h4>Opening Hours</h4>

<table style="margin: 0 0 20px 0;" border="0" cellspacing="0" cellpadding="0">
  <?php 
        $a_Openinghours = explode(',',$a_Stores['Store']['Openinghours']);
        foreach($a_Openinghours as $k=>$a_Openinghour){
                    echo '<tr><td height="20" width="100"><b>'.$GLOBALS['Days'][$k+1].':</b></td>';
                    $a_Hours = split('-',$a_Openinghour);
                    echo ' <td height="20" width="80">'.$a_Hours[0].'</td>';
                    echo ' <td height="20" width="80">'.$a_Hours[1].'</td></tr>';
        }
  ?>
   <tr>
    <td height="20"  width="100">&nbsp;</td>
    <td height="20"  width="80">&nbsp;</td>
    <td height="20"  width="80">&nbsp;</td>
  </tr>
  <tr>
    <td height="20"  width="100"><b>Lunch closure:</b></td>
    <td height="20"  width="80"><?php echo trim($a_Stores['Store']['LunchClosure'])? 'Yes':'No'; ?></td>
    <td height="20"  width="80">&nbsp;</td>
  </tr>
  <tr>
    <td height="20"  width="100"><b>Free parking: </b></td>
    <td height="20"  width="80"><?php echo trim($a_Stores['Store']['FreeParking'])? 'Yes':'No'; ?></td>
    <td height="20"  width="80">&nbsp;</td>
  </tr>
</table>

</div>
<!--COLUMN 2-->

<!--COLUMN 3-->
<div class="ThreeColGrid_c3">
	<h6 class="TitleFive">Locum Search</h6>
	<?php echo $this->element('search');?>
	<?php 
		if($user_type == 3)
			echo $this->element('store_applicants');
	?>
</div>
<!--COLUMN 3-->